package com.qzimp.fujiancuo.entity;


import java.time.LocalDate;

public class Reservation {

    private Long reservationId;
    private Long visitorId;  // 使用 visitor_id 作为外键
    private LocalDate visitDate;  // 仅保留 visitDate
    private String status; // 预约状态：pending, confirmed, cancelled

    // 构造函数
    public Reservation() {
        this.status = "pending";  // 默认状态是 pending
    }

    // Getters and Setters
    public Long getReservationId() {
        return reservationId;
    }

    public void setReservationId(Long reservationId) {
        this.reservationId = reservationId;
    }

    public Long getVisitorId() {
        return visitorId;
    }

    public void setVisitorId(Long visitorId) {
        this.visitorId = visitorId;
    }

    public LocalDate getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(LocalDate visitDate) {
        this.visitDate = visitDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}